import getlink from "@/api/getapi.js"
let BannerM = {
    state:{
        banner:""
    },
    mutations:{
        UPBANNERDATA(state,payload){
            state.banner=payload
        }
    },
    actions:{
        LINK_BANNER_DATA(conbanner,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.banner,"banner")
                conbanner.commit("UPBANNERDATA",ok.data.banner)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default BannerM;
